//
//  SevenAI.swift
//  SevenAISDK
//
//  Created by 七块 on 2025/7/2.
//

import Foundation

public typealias SevenBlockSDKInitCallback = (SevenBlockSDKInitListener) -> Void

public class SevenAI{
    public static let shared = SevenAI()
    /// sdk回调
    var sdkListener:SevenBlockSDKInitCallback!
    /// 初始化参数
    var param:InitConfigParams!
    /// 支付管理
    public var payMent:PaymentManager?
    /// 玩具管理
    public var toyManger:ToyManager?
    /// 用户签名
    public var userSign:String?
    
    /// 初始化配置
    /// - Parameters:
    ///   - param: 参数
    ///   - sdkListener: 回调监听
    public func initConfig(param: InitConfigParams,sdkListener: @escaping SevenBlockSDKInitCallback){
        self.sdkListener = sdkListener
        self.param = param
        checkInitData(params: param)
    }
    /// 登录
    /// - Parameters:
    ///   - userId: 用户ID
    ///   - userSign: 用户签名
    public func login(userId:String,userSign:String){
        userlogin(userId: userId, userSign: userSign)
    }
}
